﻿using System;
using Sharp.Infrastructure.Interfaces;

namespace Sharp.DataTransferObject.CMS
{
   public class UserBindInfoDTO : IDTO
    {

        public enum BindTypeEnum
        {
            /// <summary>
            /// 未设置
            /// </summary>
            None = 0,
            /// <summary>
            /// QQ
            /// </summary>
            QQ = 1,
            /// <summary>
            /// 微信
            /// </summary>
            Wechat = 2,
            /// <summary>
            /// 微博
            /// </summary>
            Weibo = 3
        }
        public Guid Id { get; set; }
        /// <summary>
        /// 绑定第三方的类型
        /// </summary>
        public BindTypeEnum BindType { get; set; }

        /// <summary>
        /// 第三方返回的开放id
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string HeadUrl { get; set; }

        /// <summary>
        /// 添加日期
        /// </summary>
        public DateTime? CheckInTime { get; set; }
    }
}
